package com.augurit.gzcgwsp.qyzz.dao;

import java.util.List;

import org.hibernate.Criteria;
import org.hibernate.Session;
import org.hibernate.criterion.Restrictions;
import org.springframework.stereotype.Repository;

import com.augurit.common.base.dao.BaseDao;
import com.augurit.gzcgwsp.qyzz.entity.YwRqRyzzFinalOtherEvidence;
/**
 * /**
 *  企业资质--其它证明材料 dao类
 * @author 张军
 *
 */
@Repository
public class YwRqQyzzFinalOtherEvidenceDao extends BaseDao<YwRqRyzzFinalOtherEvidence, Long> {

	/**
	 * 查询其它证明材料
	 * @param qyid
	 * @param acceptNo
	 * @return
	 */
	public List<YwRqRyzzFinalOtherEvidence> getOtherEvidences(long qyid, String acceptNo) {
	Session session=this.getSession();
	Criteria criteria=session.createCriteria(YwRqRyzzFinalOtherEvidence.class);
	criteria.add(Restrictions.eq("qyid", qyid));
	criteria.add(Restrictions.eq("acceptNo", acceptNo));
	return criteria.list();
	}
}